<?php
/**
 * 系統名稱: Lotto 系統
 * 檔案說明: 專案管理-修改
 * $Author$
 * $Id$
 *
 */
include_once("../../config.inc.php");

$_LangPath = "competition";
$strTemplatePath = __Admintemplate_Path."/Competition/";
include_once(__Admin_Path."/logincheck.php");
include_once(__Language_Path."/selectlanguage_admin.php");
include_once(__Modules_Path."/Utility.lib.php");
include_once(__Modules_Path."/SQLUtility.lib.php");
include_once(__Modules_Path."/Tool.lib.php");
include_once(__Modules_Path."/BetLimit.lib.php");
include_once(__Modules_Path."/ChangeTime.lib.php");
include_once(__Modules_Path."/Lotto.lib.php");
include_once(__Modules_Path."/Gamble.lib.php");
include_once(__Common_Path."/Lotto.inc.php");

$arrPower = CheckUsePower("competition");
if($arrPower === false)ErrMsgOutputHTML("Error", "", 1);

$data = $_data["data"];
switch($_data["op"]){
	case "Add":						//新增彩期
		include_once(__Modules_Path."/WagerResult.lib.php");
		include_once(__Modules_Path."/Competition.lib.php");
		include_once("Add.php");
		break;

	case "Insert":					//新增彩期
		include_once(__Modules_Path."/WagerResult.lib.php");
		include_once(__Modules_Path."/Competition.lib.php");
		include_once("Insert.php");
		break;

	case "Edit":					//編輯彩期
		include_once("Edit.php");
		break;

	case "Update":					//更改彩期資料
		include_once(__Modules_Path."/Competition.lib.php");
		include_once("Update.php");
		break;

	case "Del":						//刪除彩期資料
		include_once(__Modules_Path."/Competition.lib.php");
		include_once("Del.php");
		break;

	case "CountResult":				//計算彩期結束後派彩結果
		include_once(__Modules_Path."/Competition.lib.php");
		include_once(__Modules_Path."/WagerResult.lib.php");
		include_once("CountResult.php");
		break;

	case "ImportScore":				//輸入彩期成績
		include_once("ImportScore.php");
		break;

	case "ShowScore":				//顯示彩期成績
		include_once(__Modules_Path."/WagerResult.lib.php");
		include_once("ShowScore.php");
		break;

	case "QAdd10M":				//快速新增快樂  10分彩期
		include_once(__Modules_Path."/WagerResult.lib.php");
		include_once(__Modules_Path."/Competition.lib.php");
		include_once("QAdd10M.php");
		break;

	case "Export":				//匯出注單資料
		include_once(__Modules_Path."/WagerForm.lib.php");
		include_once("Export.php");
		break;

	default:						//彩期清單
		include_once("List.php");
		break;
}


@mysql_close($$_Conn);
?>